// this is aliased in webpack config based on server/client build
import BankListController from '../controllers/bankList';
import BidDetailController from '../controllers/bidDetail';
import BidListController from '../controllers/bidList';

export function fetchBidByBidId(id){
  return Promise.resolve(BidDetailController.detail(id, function(a){
    return a;
  }))
}

export function fetchBidList(){
  return Promise.resolve(BidListController.list(function(a){
    return a;
  }))
}

export function fetchBankList(type){
  return Promise.resolve(BankListController.detail(type, function(a){
    return a;
  }))
}